package com.beamfield.dao.material;

import com.beamfield.model.EmbedInbound;
import com.beamfield.model.EmbedInboundExample;
import com.beamfield.modelVo.EmbedVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface EmbedInboundMapper {
    int deleteByPrimaryKey(Long embed_inbound_id);

    int insert(EmbedInbound record);

    int insertSelective(EmbedInbound record);

    List<EmbedInbound> selectByExample(EmbedInboundExample example);

    EmbedInbound selectByPrimaryKey(Long embed_inbound_id);

    int updateByPrimaryKeySelective(EmbedInbound record);

    int updateByPrimaryKey(EmbedInbound record);

    List<EmbedInbound> selectByInboundId(@Param("offset") Integer offset,@Param("limit") Integer limit,@Param("inboundId") Long inboundId);

    int updateState(@Param("list") List<String> embedInboundList,@Param("state") String state);

    Long countByInboundId(@Param("inboundId") Long inbound_id);

    EmbedVo selectEmbed(@Param("embedInboundId") Long embedInboundId);

    int deleteByInboundId(@Param("inboundId") Long inboundId);

}
